package com.app.couponsharelife.ui.main.me.tribe
import com.app.couponsharelife.R
import com.app.couponsharelife.base.BaseActivity
import com.app.couponsharelife.ui.main.tribe.TribeFragment
import com.app.couponsharelife.utils.AppUtils
import kotlinx.android.synthetic.main.activity_ticket_tribe.*

/**
 *Created by xct on 2019/4/27
 *Description:券工坊
 */
class TicketTribeActivity:BaseActivity() {
    override val viewLayoutId: Int
        get() = R.layout.activity_ticket_tribe

    override fun initViews() {
        AppUtils.initImmersionBar(this,false)
        val fragmentManager = supportFragmentManager
        val fragmentTransaction = fragmentManager.beginTransaction()
        val fragment= TribeFragment.newInstance()
        fragmentTransaction.replace(R.id.ticketTribe_rootlayout,fragment).commit()
        ivTribeClose.setOnClickListener { finish() }
    }

    override fun onDestroy() {
        super.onDestroy()
        AppUtils.destroyImmersionBar(this)
    }
}